package Iterator;

/**
 * @Grup:Iterator
 * @Auther:cola
 * @Data:2021/3/29-2021-03-23:25
 * @version:1.0
 */
public class ConcreteTest {
    public static void main(String[] args) {
        MyList list=new ConcreteAggregate();
        list.add("啊大大");
        list.add("三大大");
        list.add("四大大");
        Iterators iter=list.iterator();
        while (iter.hashNext()){
            System.out.println(iter.next());
        }
    }
}
